package com.akuhome.resource.entity;

import com.akuhome.resource.DO.RoomType;

import java.math.BigDecimal;
import java.sql.Timestamp;

public class Dormitory {
    Integer id;
    Integer amount;
    Double fullPrice;
    Double hourPrice;
    Timestamp createTime;
    Timestamp updateTime;
    Build build;
    RoomType roomType;

    public Dormitory() {
    }

    public Dormitory(String roomType, Double fullPrice, Double hourPrice) {
        this.fullPrice = fullPrice;
        this.hourPrice = hourPrice;
        this.roomType = new RoomType(roomType);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Double getFullPrice() {
        return fullPrice;
    }

    public void setFullPrice(Double fullPrice) {
        this.fullPrice = fullPrice;
    }

    public Double getHourPrice() {
        return hourPrice;
    }

    public void setHourPrice(Double hourPrice) {
        this.hourPrice = hourPrice;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Build getBuild() {
        return build;
    }

    public void setBuild(Build build) {
        this.build = build;
    }

    public RoomType getRoomType() {
        return roomType;
    }

    public void setRoomType(RoomType roomType) {
        this.roomType = roomType;
    }
}
